package com.ruoyi.common.core.mapper.order.vo;

import com.ruoyi.common.core.domain.order.vo.Cleaning;
import com.ruoyi.common.core.domain.user.Address;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 员工接单（接单成功要显示在接单大厅）
 */
public interface TakeOrdersMapper {
    //======================================
    //用户下单阶段
    //======================================
    /**
     * 1. 查询所有员工可接单的服务
     */
    List<Cleaning> listCleanings(Cleaning cleaning);


    /**
     * 2. 获取用户地址
     */
    @Select("select * from address where user_id = #{userId}")
    List<Address> listUserAddresses01(Long userId);
}
